package com.tanhua.api;

import com.tanhua.sso.pojo.Movement;
import org.bson.types.ObjectId;

import java.util.List;

public interface MovementsService {
    public void publish(Movement movement);

    //查询我的动态
    List<Movement> myMovement(Integer page, Integer pagesize, Long userid);

    //查询好友动态
    List<Movement> friendMovement(Integer page,Integer pagesize,Long userId);

    //随机查询动态
    List<Movement> randomMovement(Integer pagesize);

    List<Movement> findBypids(List<Long> collectPid);

    /*查看个人动态*/
    Movement getMovementByid(String movementId);


    /*查看是否点赞*/
    boolean islike(ObjectId id, Long userId);

    /*取消点赞*/
    Integer disLike(ObjectId id, Long userId);

    //是否喜欢
    boolean isLove(ObjectId id, Long userId);

    //取消喜欢
    Integer unLove(ObjectId id, Long userId);

    //分页条件动态
     ResultVo<Movement> page(Integer page, Integer pagesize, Long uid, String state);

     //审核动态
    void updatePass(List<String> ids, Integer state);
}
